package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据菜品id查询套餐iddeleteByIds
     * @param dishIds
     * @return
     */
    Integer getCountByDishIds (List<Long> dishIds);

    /**
     * 根据套餐id查询套餐id
     * @param
     * @return
     */
    List<Long> getSetmealIdsByIds (List<Long> setmealId);

    /**
     * 新增套餐
     * @param setmealDishes
     */
    void add(List<SetmealDish> setmealDishes);

    /**
     * 根据id删除套餐
     * @param setmeal_id
     */
    void deleteByIds(List<Long> setmeal_id);
}
